<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.3.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/avatar.jpg">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/avatar.jpg">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/avatar.jpg">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"yoursite.com","root":"/","scheme":"Mist","version":"7.7.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="员工管理系统各模块的输入输出">
<meta property="og:type" content="article">
<meta property="og:title" content="员工管理系统接口">
<meta property="og:url" content="http://yoursite.com/2020/06/01/curriculumdesign/databaseAPI/index.html">
<meta property="og:site_name" content="Shouquan">
<meta property="og:description" content="员工管理系统各模块的输入输出">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2020-06-01T09:12:17.772Z">
<meta property="article:modified_time" content="2020-07-28T03:51:54.089Z">
<meta property="article:author" content="shou quan">
<meta property="article:tag" content="database">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://yoursite.com/2020/06/01/curriculumdesign/databaseAPI/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true
  };
</script>

  <title>员工管理系统接口 | Shouquan</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Shouquan</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
        <li class="menu-item menu-item-sitemap">

    <a href="/sitemap.xml" rel="section"><i class="fa fa-fw fa-sitemap"></i>站点地图</a>

  </li>
  </ul>

</nav>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2020/06/01/curriculumdesign/databaseAPI/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.jpg">
      <meta itemprop="name" content="shou quan">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Shouquan">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          员工管理系统接口
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-06-01 17:12:17" itemprop="dateCreated datePublished" datetime="2020-06-01T17:12:17+08:00">2020-06-01</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-07-28 11:51:54" itemprop="dateModified" datetime="2020-07-28T11:51:54+08:00">2020-07-28</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/%E8%AE%BE%E8%AE%A1/" itemprop="url" rel="index"><span itemprop="name">设计</span></a>
                </span>
            </span>

          
            <span id="/2020/06/01/curriculumdesign/databaseAPI/" class="post-meta-item leancloud_visitors" data-flag-title="员工管理系统接口" title="阅读次数">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span class="leancloud-visitors-count"></span>
            </span>
  
  <span class="post-meta-item">
    
      <span class="post-meta-item-icon">
        <i class="fa fa-comment-o"></i>
      </span>
      <span class="post-meta-item-text">Valine：</span>
    
    <a title="valine" href="/2020/06/01/curriculumdesign/databaseAPI/#valine-comments" itemprop="discussionUrl">
      <span class="post-comments-count valine-comment-count" data-xid="/2020/06/01/curriculumdesign/databaseAPI/" itemprop="commentCount"></span>
    </a>
  </span>
  
  

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <pre><code>员工管理系统各模块的输入输出</code></pre><a id="more"></a>
<h1 id="数据库接口具体内容"><a href="#数据库接口具体内容" class="headerlink" title="数据库接口具体内容"></a>数据库接口具体内容</h1><h2 id="基础型"><a href="#基础型" class="headerlink" title="基础型"></a>基础型</h2><h3 id="注册接口"><a href="#注册接口" class="headerlink" title="注册接口"></a>注册接口</h3><ul>
<li>请求路径:register</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>username</td>
<td>用户名</td>
<td>String</td>
<td>NotNull</td>
</tr>
<tr>
<td>password</td>
<td>密码</td>
<td>String</td>
<td>NotNull</td>
</tr>
<tr>
<td>true_name</td>
<td>真实姓名</td>
<td>String</td>
<td>NotNull</td>
</tr>
<tr>
<td>email</td>
<td>邮箱</td>
<td>String</td>
<td>NotNull</td>
</tr>
</tbody></table>
<ul>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>code</td>
<td>返回状态码</td>
<td>int</td>
<td>NotNull</td>
</tr>
<tr>
<td>result</td>
<td>注册结果</td>
<td>boolean</td>
<td>注册成功与否</td>
</tr>
<tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>NotNull</td>
</tr>
</tbody></table>
<h3 id="登录接口"><a href="#登录接口" class="headerlink" title="登录接口"></a>登录接口</h3><ul>
<li>请求路径:login</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>username</td>
<td>用户名</td>
<td>String</td>
<td>NotNull</td>
</tr>
<tr>
<td>password</td>
<td>密码</td>
<td>String</td>
<td>NotNull</td>
</tr>
</tbody></table>
<ul>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>code</td>
<td>返回状态码</td>
<td>int</td>
<td>NotNull</td>
</tr>
<tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td></td>
</tr>
</tbody></table>
<h2 id="获取型"><a href="#获取型" class="headerlink" title="获取型"></a>获取型</h2><h3 id="获取员工列表"><a href="#获取员工列表" class="headerlink" title="获取员工列表"></a>获取员工列表</h3><ul>
<li>请求路径:getEmployees</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问员工列别</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>要查询的员工工号，若不指定，则返回权限内的所有员工对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>员工工号</td>
</tr>
<tr>
<td>name</td>
<td>员工名称</td>
<td>Stirng</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>员工年龄</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>gender</td>
<td>员工性别</td>
<td>boolean</td>
<td>ture(男)/false(女)</td>
</tr>
<tr>
<td>address</td>
<td>员工住址</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>education</td>
<td>教育背景</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>contact</td>
<td>联系方式</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>stationName</td>
<td>职位</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>salary</td>
<td>薪水</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>currentTask</td>
<td>当前任务</td>
<td>String</td>
<td>显示为项目名，数据库中此处记录的是ProjectId，通过这个去联合查询项目名</td>
</tr>
<tr>
<td>contractStart</td>
<td>合同开始时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
<tr>
<td>contractEnd</td>
<td>合同结束时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
</tbody></table>
<h3 id="获取员工培训信息"><a href="#获取员工培训信息" class="headerlink" title="获取员工培训信息"></a>获取员工培训信息</h3><ul>
<li>请求路径:getTrainInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>要查询的员工工号，若不指定，则返回权限内的所有员工对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>员工工号</td>
</tr>
<tr>
<td>name</td>
<td>员工名称</td>
<td>Stirng</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>员工年龄</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>stationName</td>
<td>职位</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>trainType</td>
<td>培训类型</td>
<td></td>
<td></td>
</tr>
<tr>
<td>trainSite</td>
<td>培训地点</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>trainHour</td>
<td>培训课时</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>trainContent</td>
<td>培训内容</td>
<td>Sting</td>
<td>具体培训内容</td>
</tr>
<tr>
<td>trainScore</td>
<td>培训成绩</td>
<td>String</td>
<td>具体可以优良中差，百分制等等 用String显示</td>
</tr>
<tr>
<td>trianStart</td>
<td>培训开始时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
<tr>
<td>trainEnd</td>
<td>培训结束时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
</tbody></table>
<h3 id="获取员工考勤信息"><a href="#获取员工考勤信息" class="headerlink" title="获取员工考勤信息"></a>获取员工考勤信息</h3><ul>
<li>请求路径:getAttendanceInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>要查询的员工工号，若不指定，则返回权限内的所有员工对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>员工工号</td>
</tr>
<tr>
<td>name</td>
<td>员工名称</td>
<td>Stirng</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>员工年龄</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>stationName</td>
<td>职位</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>overTimeHours</td>
<td>加班时间</td>
<td>int</td>
<td>按小时计</td>
</tr>
<tr>
<td>numberLateHours</td>
<td>迟到时间</td>
<td>int</td>
<td>按小时计</td>
</tr>
<tr>
<td>absentTimes</td>
<td>旷工次数</td>
<td>int</td>
<td>按次计</td>
</tr>
<tr>
<td>offTimeHours</td>
<td>请假时间</td>
<td>int</td>
<td>按小时计</td>
</tr>
</tbody></table>
<h3 id="获取职位信息"><a href="#获取职位信息" class="headerlink" title="获取职位信息"></a>获取职位信息</h3><ul>
<li>请求路径:getStationInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>stationName</td>
<td>部门名称</td>
<td>String</td>
<td>要查询的职位信息，若不指定，则返回权限内的所有职位对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>stationName</td>
<td>职位名称</td>
<td>String</td>
<td>eg.研发部</td>
</tr>
<tr>
<td>clockIn</td>
<td>上班时间</td>
<td>int</td>
<td>eg. 9即为9:00上班</td>
</tr>
<tr>
<td>clockOut</td>
<td>下班时间</td>
<td>int</td>
<td>eg. 20即为20:00下班</td>
</tr>
<tr>
<td>averageSalary</td>
<td>平均工资</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>jobNumber</td>
<td>员工数量</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>department</td>
<td>所属部门</td>
<td>String</td>
<td>部门名称</td>
</tr>
<tr>
<td>department_id</td>
<td>所属部门id</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>station_id</td>
<td>岗位id</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<h3 id="获取部门信息"><a href="#获取部门信息" class="headerlink" title="获取部门信息"></a>获取部门信息</h3><ul>
<li>请求路径:getDepartmentInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>region</td>
<td>部门地区</td>
<td>String</td>
<td>要查询的部门地区，若不指定，则返回权限内的所有部门对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>departmentName</td>
<td>部门名称</td>
<td>String</td>
<td>eg.研发部</td>
</tr>
<tr>
<td>region</td>
<td>部门地区</td>
<td>String</td>
<td>eg.合肥市</td>
</tr>
<tr>
<td>departmentHeadName</td>
<td>部门负责人</td>
<td>String</td>
<td>部门负责人名称</td>
</tr>
<tr>
<td>departmentFunction</td>
<td>部门职能</td>
<td>String</td>
<td>eg.负责软件开发</td>
</tr>
<tr>
<td>stations</td>
<td>部门下辖职位</td>
<td>String</td>
<td>直接后端组装好传给前端 eg.销售/顾问/会计</td>
</tr>
<tr>
<td>department_id</td>
<td>部门id</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<h3 id="获取项目信息"><a href="#获取项目信息" class="headerlink" title="获取项目信息"></a>获取项目信息</h3><ul>
<li>请求路径:getProjectInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>projectName</td>
<td>项目名称</td>
<td>String</td>
<td>要查询的项目名称，若不指定，则返回权限内的所有项目对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>projectId</td>
<td>项目ID</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>projectName</td>
<td>项目名称</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>projectLeader</td>
<td>项目负责人</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>difficultLevel</td>
<td>难度级别</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>departmentName</td>
<td>负责部门</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>projectStart</td>
<td>项目开始时间</td>
<td>String</td>
<td>时间序列化</td>
</tr>
<tr>
<td>projectEnd</td>
<td>项目结束时间</td>
<td>String</td>
<td>时间序列化</td>
</tr>
<tr>
<td>projectContent</td>
<td>项目内容</td>
<td>String</td>
<td>项目简介之类</td>
</tr>
<tr>
<td>participants</td>
<td>参与人员</td>
<td>String[]</td>
<td>返回员工姓名集合，这个需要查员工的表</td>
</tr>
</tbody></table>
<h3 id="获取职位变动信息"><a href="#获取职位变动信息" class="headerlink" title="获取职位变动信息"></a>获取职位变动信息</h3><ul>
<li>请求路径:getStationChangeInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>要查询的员工名称，若不指定，则返回权限内的所有员工对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>workNumber</td>
<td>员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>name</td>
<td>员工姓名</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>changeType</td>
<td>变动类型</td>
<td>String</td>
<td>eg.升迁，平调…</td>
</tr>
<tr>
<td>occurTime</td>
<td>调用时间</td>
<td>String</td>
<td>时间序列化为String</td>
</tr>
<tr>
<td>reason</td>
<td>变动原因</td>
<td>String</td>
<td>eg.表现过于出色</td>
</tr>
<tr>
<td>originStation</td>
<td>String</td>
<td>原本职位</td>
<td></td>
</tr>
<tr>
<td>desStation</td>
<td>String</td>
<td>调动后职位</td>
<td></td>
</tr>
</tbody></table>
<h3 id="获取薪水变动信息"><a href="#获取薪水变动信息" class="headerlink" title="获取薪水变动信息"></a>获取薪水变动信息</h3><ul>
<li>请求路径:getSalaryChangeInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>要查询的员工名称，若不指定，则返回权限内的所有员工对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>workNumber</td>
<td>员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>changeType</td>
<td>变动类型</td>
<td>String</td>
<td>eg.升迁，平调…</td>
</tr>
<tr>
<td>reason</td>
<td>变动原因</td>
<td>String</td>
<td>eg.表现过于出色</td>
</tr>
<tr>
<td>amount</td>
<td>变动数额</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>occurTime</td>
<td>变动时间</td>
<td>String</td>
<td>时间序列化为String</td>
</tr>
</tbody></table>
<h3 id="获取管理者权限信息"><a href="#获取管理者权限信息" class="headerlink" title="获取管理者权限信息"></a>获取管理者权限信息</h3><ul>
<li>请求路径:getAccessInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>username</td>
<td>管理者用户名</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>departmentId</td>
<td>管理的部门id</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>rloeName</td>
<td>管理者权限</td>
<td>String</td>
<td>eg.开发部主管</td>
</tr>
<tr>
<td>hr</td>
<td>是否hr</td>
<td>int</td>
<td>1表示是hr 否则表示不是hr</td>
</tr>
<tr>
<td>email</td>
<td>邮箱</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>true_name</td>
<td>真实姓名</td>
<td>String</td>
<td></td>
</tr>
</tbody></table>
<h3 id="获取角色权限信息"><a href="#获取角色权限信息" class="headerlink" title="获取角色权限信息"></a>获取角色权限信息</h3><ul>
<li>请求路径:getRoleInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权访问对应信息</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>roleId</td>
<td>管理者用户名</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>departmentId</td>
<td>管理的部门id</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>rloeName</td>
<td>管理者权限</td>
<td>String</td>
<td>eg.开发部主管</td>
</tr>
<tr>
<td>hr</td>
<td>是否hr</td>
<td>int</td>
<td>1表示是hr 否则表示不是hr</td>
</tr>
</tbody></table>
<h2 id="增删型"><a href="#增删型" class="headerlink" title="增删型"></a>增删型</h2><h3 id="添加员工"><a href="#添加员工" class="headerlink" title="添加员工"></a>添加员工</h3><ul>
<li>请求路径:addEmployee</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权添加对应信息</td>
</tr>
<tr>
<td>name</td>
<td>员工名称</td>
<td>Stirng</td>
<td></td>
</tr>
<tr>
<td>age</td>
<td>员工年龄</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>gender</td>
<td>员工性别</td>
<td>boolean</td>
<td>ture(男)/false(女)</td>
</tr>
<tr>
<td>address</td>
<td>员工地址</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>education</td>
<td>受教育背景</td>
<td></td>
<td></td>
</tr>
<tr>
<td>contact</td>
<td>联系方式</td>
<td>eg.188888888</td>
<td></td>
</tr>
<tr>
<td>stationName</td>
<td>职位</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>salary</td>
<td>薪水</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>contractStart</td>
<td>合同开始时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
<tr>
<td>contractEnd</td>
<td>合同结束时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
</tbody></table>
<p>注:此处向数据中还应添加薪水id(notNULL)，考勤id(notNULL)，培训id(notNULL)，由系统自动生成</p>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败###</td>
</tr>
</tbody></table>
<h3 id="删除员工"><a href="#删除员工" class="headerlink" title="删除员工"></a>删除员工</h3><ul>
<li>请求路径:deleteEmployee</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>workNumber</td>
<td>工号</td>
<td>int</td>
<td>员工工号</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="添加职位"><a href="#添加职位" class="headerlink" title="添加职位"></a>添加职位</h3><ul>
<li>请求路径:addStation</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>stationName</td>
<td>职位名称</td>
<td>String</td>
<td>eg.研发部</td>
</tr>
<tr>
<td>clockIn</td>
<td>上班时间</td>
<td>int</td>
<td>eg. 9即为9:00上班</td>
</tr>
<tr>
<td>clockOut</td>
<td>下班时间</td>
<td>int</td>
<td>eg. 20即为20:00下班</td>
</tr>
<tr>
<td>department</td>
<td>所属部门</td>
<td>String</td>
<td>所属部门名称</td>
</tr>
<tr>
<td>department_id</td>
<td>所属部门id</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="删除职位"><a href="#删除职位" class="headerlink" title="删除职位"></a>删除职位</h3><ul>
<li>请求路径:deleteStation</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>station_id</td>
<td>职位id</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>code</td>
<td>执行状态码</td>
<td>int</td>
<td>200成功，403失败</td>
</tr>
</tbody></table>
<h3 id="添加部门"><a href="#添加部门" class="headerlink" title="添加部门"></a>添加部门</h3><ul>
<li>请求路径:addDepartment</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>department_name</td>
<td>部门名称</td>
<td>String</td>
<td>eg.研发部</td>
</tr>
<tr>
<td>department_function</td>
<td>部门职能</td>
<td>String</td>
<td>eg.负责软件研发</td>
</tr>
<tr>
<td>region</td>
<td>部门地区</td>
<td>String</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>code</td>
<td>执行状态码</td>
<td>int</td>
<td>200成功，403失败</td>
</tr>
</tbody></table>
<h3 id="删除部门"><a href="#删除部门" class="headerlink" title="删除部门"></a>删除部门</h3><ul>
<li>请求路径:deleteDepartment</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>department_id</td>
<td>部门id</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>code</td>
<td>执行状态码</td>
<td>int</td>
<td>200成功，403失败</td>
</tr>
</tbody></table>
<h3 id="添加项目"><a href="#添加项目" class="headerlink" title="添加项目"></a>添加项目</h3><ul>
<li>请求路径:addProject</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>projectName</td>
<td>项目名称</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>projectLeader</td>
<td>项目负责人</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>projectContent</td>
<td>项目内容</td>
<td>String</td>
<td>项目简介之类</td>
</tr>
<tr>
<td>projectStart</td>
<td>项目开始时间</td>
<td>String</td>
<td>eg.2020-6-10</td>
</tr>
<tr>
<td>projectEnd</td>
<td>项目结束时间</td>
<td>String</td>
<td>eg.2020-6-20</td>
</tr>
<tr>
<td>difficultLevel</td>
<td>难度级别</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>participants</td>
<td>参与人员</td>
<td>String</td>
<td>员工工号集合(以”,”作为分隔符) eg 1234567981,1234567982,1234567893</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="删除项目"><a href="#删除项目" class="headerlink" title="删除项目"></a>删除项目</h3><ul>
<li>请求路径:addProject</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>projectId</td>
<td>项目ID</td>
<td>String</td>
<td>要删除的项目ID</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="添加培训信息"><a href="#添加培训信息" class="headerlink" title="添加培训信息"></a>添加培训信息</h3><ul>
<li>请求路径:addProject</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>workNumber</td>
<td>培训员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>trainType</td>
<td>培训类型</td>
<td></td>
<td></td>
</tr>
<tr>
<td>trainSite</td>
<td>培训地点</td>
<td>String</td>
<td></td>
</tr>
<tr>
<td>trainHour</td>
<td>培训课时</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>trainContent</td>
<td>培训内容</td>
<td>Sting</td>
<td>具体培训内容</td>
</tr>
<tr>
<td>trainScore</td>
<td>培训成绩</td>
<td>String</td>
<td>具体可以优良中差，百分制等等 用String显示</td>
</tr>
<tr>
<td>trianStart</td>
<td>培训开始时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
<tr>
<td>trainEnd</td>
<td>培训结束时间</td>
<td>String</td>
<td>获取时间序列化</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="添加考勤信息"><a href="#添加考勤信息" class="headerlink" title="添加考勤信息"></a>添加考勤信息</h3><ul>
<li>请求路径:addAttendanceInfo</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>workNumber</td>
<td>员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>matter</td>
<td>考勤类型</td>
<td>String</td>
<td>迟到/旷工/加班/请假</td>
</tr>
<tr>
<td>occur_time</td>
<td>对应时间</td>
<td>int</td>
<td>eg.8 代表8小时</td>
</tr>
<tr>
<td>后台每收到一次考勤信息，就修改对应的考勤表</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>eg.matter为迟到时，就在数据库number_late上添加对应的hours时间</td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="删除管理者"><a href="#删除管理者" class="headerlink" title="删除管理者"></a>删除管理者</h3><ul>
<li>请求路径:deleteUser</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>username</td>
<td>用户名</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h2 id="修改型"><a href="#修改型" class="headerlink" title="修改型"></a>修改型</h2><h3 id="修改员工职位"><a href="#修改员工职位" class="headerlink" title="修改员工职位"></a>修改员工职位</h3><ul>
<li>请求路径:updataStation</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>workNumber</td>
<td>员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>changeType</td>
<td>变更类型</td>
<td>String</td>
<td>平调,升迁等。。</td>
</tr>
<tr>
<td>reason</td>
<td>变更原因</td>
<td>String</td>
<td>简单叙述一下</td>
</tr>
<tr>
<td>des_station</td>
<td>目标职位</td>
<td>String</td>
<td>职位名称</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="修改员工工资"><a href="#修改员工工资" class="headerlink" title="修改员工工资"></a>修改员工工资</h3><ul>
<li>请求路径:updataSalary</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>workNumber</td>
<td>员工工号</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>change_type</td>
<td>变更类型</td>
<td>String</td>
<td>涨薪，降薪。。</td>
</tr>
<tr>
<td>reason</td>
<td>变更原因</td>
<td>String</td>
<td>简单叙述一下</td>
</tr>
<tr>
<td>des_salary</td>
<td>目标薪酬</td>
<td>int</td>
<td></td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>
<h3 id="修改管理者权限"><a href="#修改管理者权限" class="headerlink" title="修改管理者权限"></a>修改管理者权限</h3><ul>
<li>请求路径:updataAccess</li>
<li>请求方法:POST</li>
<li>请求格式:JSON</li>
<li>请求参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>token</td>
<td>令牌</td>
<td>String</td>
<td>用来判断用户身份，从而确定是否有权执行对应操作</td>
</tr>
<tr>
<td>username</td>
<td>管理者用户名</td>
<td>int</td>
<td></td>
</tr>
<tr>
<td>role_id</td>
<td>目标权限id</td>
<td>int</td>
<td>eg. 1表示开发部主管 0表示无权限</td>
</tr>
</tbody></table>
<ul>
<li>响应格式:JSON列表</li>
<li>响应参数</li>
</ul>
<table>
<thead>
<tr>
<th>参数名</th>
<th>参数说明</th>
<th>参数类型</th>
<th>备注</th>
</tr>
</thead>
<tbody><tr>
<td>result</td>
<td>执行结果</td>
<td>boolean</td>
<td>true成功，false失败</td>
</tr>
</tbody></table>

    </div>

    
    
    

      <footer class="post-footer">
      <div>
     
       
<div class="my_post_copyright">
<div style="text-align:center;color: #ccc;font-size:14px;">
------ 版权信息 ------</div>
 <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
 
 <p><span>本文标题:</span><a href="/2020/06/01/curriculumdesign/databaseAPI/">员工管理系统接口</a></p>
 <p><span>文章作者:</span><a href="/" title="访问  的个人博客"></a></p>
 <p><span>原始链接:</span><a href="/2020/06/01/curriculumdesign/databaseAPI/" title="员工管理系统接口">http://yoursite.com/2020/06/01/curriculumdesign/databaseAPI/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="http://yoursite.com/2020/06/01/curriculumdesign/databaseAPI/"  aria-label="复制成功！"></i></span>
 </p>
 <p><span>许可协议:</span><a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">本博客所有文章除特别声明外，均采用<i class="fa fa-creative-commons"></i>BY-NC-SA 许可协议。转载请注明出处！</a></p>  
</div>
<script> 
   var clipboard = new Clipboard('.fa-clipboard');
   $(".fa-clipboard").click(function(){
     clipboard.on('success', function(){
       swal({   
         title: "",   
         text: '复制成功',
         icon: "success", 
         showConfirmButton: true
         });
 	 });
   });  
</script>


     
</div>
          <div class="post-tags">
              <a href="/tags/database/" rel="tag"># database</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/04/13/conclusion/dczongjie/" rel="prev" title="大创结题的总结">
      <i class="fa fa-chevron-left"></i> 大创结题的总结
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/07/02/Security_framework/chapter1/" rel="next" title="计算机与网络安全概念">
      计算机与网络安全概念 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          
    <div class="comments" id="valine-comments"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let activeClass = CONFIG.comments.activeClass;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%BA%93%E6%8E%A5%E5%8F%A3%E5%85%B7%E4%BD%93%E5%86%85%E5%AE%B9"><span class="nav-number">1.</span> <span class="nav-text">数据库接口具体内容</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%9F%BA%E7%A1%80%E5%9E%8B"><span class="nav-number">1.1.</span> <span class="nav-text">基础型</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B3%A8%E5%86%8C%E6%8E%A5%E5%8F%A3"><span class="nav-number">1.1.1.</span> <span class="nav-text">注册接口</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E7%99%BB%E5%BD%95%E6%8E%A5%E5%8F%A3"><span class="nav-number">1.1.2.</span> <span class="nav-text">登录接口</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E5%9E%8B"><span class="nav-number">1.2.</span> <span class="nav-text">获取型</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E5%91%98%E5%B7%A5%E5%88%97%E8%A1%A8"><span class="nav-number">1.2.1.</span> <span class="nav-text">获取员工列表</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E5%91%98%E5%B7%A5%E5%9F%B9%E8%AE%AD%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.2.</span> <span class="nav-text">获取员工培训信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E5%91%98%E5%B7%A5%E8%80%83%E5%8B%A4%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.3.</span> <span class="nav-text">获取员工考勤信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E8%81%8C%E4%BD%8D%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.4.</span> <span class="nav-text">获取职位信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E9%83%A8%E9%97%A8%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.5.</span> <span class="nav-text">获取部门信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E9%A1%B9%E7%9B%AE%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.6.</span> <span class="nav-text">获取项目信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E8%81%8C%E4%BD%8D%E5%8F%98%E5%8A%A8%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.7.</span> <span class="nav-text">获取职位变动信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E8%96%AA%E6%B0%B4%E5%8F%98%E5%8A%A8%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.8.</span> <span class="nav-text">获取薪水变动信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E7%AE%A1%E7%90%86%E8%80%85%E6%9D%83%E9%99%90%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.9.</span> <span class="nav-text">获取管理者权限信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%8E%B7%E5%8F%96%E8%A7%92%E8%89%B2%E6%9D%83%E9%99%90%E4%BF%A1%E6%81%AF"><span class="nav-number">1.2.10.</span> <span class="nav-text">获取角色权限信息</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%A2%9E%E5%88%A0%E5%9E%8B"><span class="nav-number">1.3.</span> <span class="nav-text">增删型</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E5%91%98%E5%B7%A5"><span class="nav-number">1.3.1.</span> <span class="nav-text">添加员工</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E5%91%98%E5%B7%A5"><span class="nav-number">1.3.2.</span> <span class="nav-text">删除员工</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E8%81%8C%E4%BD%8D"><span class="nav-number">1.3.3.</span> <span class="nav-text">添加职位</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E8%81%8C%E4%BD%8D"><span class="nav-number">1.3.4.</span> <span class="nav-text">删除职位</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E9%83%A8%E9%97%A8"><span class="nav-number">1.3.5.</span> <span class="nav-text">添加部门</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E9%83%A8%E9%97%A8"><span class="nav-number">1.3.6.</span> <span class="nav-text">删除部门</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E9%A1%B9%E7%9B%AE"><span class="nav-number">1.3.7.</span> <span class="nav-text">添加项目</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E9%A1%B9%E7%9B%AE"><span class="nav-number">1.3.8.</span> <span class="nav-text">删除项目</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E5%9F%B9%E8%AE%AD%E4%BF%A1%E6%81%AF"><span class="nav-number">1.3.9.</span> <span class="nav-text">添加培训信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B7%BB%E5%8A%A0%E8%80%83%E5%8B%A4%E4%BF%A1%E6%81%AF"><span class="nav-number">1.3.10.</span> <span class="nav-text">添加考勤信息</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E7%AE%A1%E7%90%86%E8%80%85"><span class="nav-number">1.3.11.</span> <span class="nav-text">删除管理者</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E5%9E%8B"><span class="nav-number">1.4.</span> <span class="nav-text">修改型</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E5%91%98%E5%B7%A5%E8%81%8C%E4%BD%8D"><span class="nav-number">1.4.1.</span> <span class="nav-text">修改员工职位</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E5%91%98%E5%B7%A5%E5%B7%A5%E8%B5%84"><span class="nav-number">1.4.2.</span> <span class="nav-text">修改员工工资</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E4%BF%AE%E6%94%B9%E7%AE%A1%E7%90%86%E8%80%85%E6%9D%83%E9%99%90"><span class="nav-number">1.4.3.</span> <span class="nav-text">修改管理者权限</span></a></li></ol></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="shou quan"
      src="/images/avatar.jpg">
  <p class="site-author-name" itemprop="name">shou quan</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">26</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">13</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">22</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>


  <div class="links-of-blogroll motion-element">
    <div class="links-of-blogroll-title">
      <i class="fa fa-fw fa-link"></i>
      小伙伴们
    </div>
    <ul class="links-of-blogroll-list">
        <li class="links-of-blogroll-item">
          <a href="http://zkwanp.com/" title="http:&#x2F;&#x2F;zkwanp.com" rel="noopener" target="_blank">这款顽皮</a>
        </li>
        <li class="links-of-blogroll-item">
          <a href="http://www.xiaoludingding.top/" title="http:&#x2F;&#x2F;www.xiaoludingding.top" rel="noopener" target="_blank">小鹿叮叮纸尿裤</a>
        </li>
    </ul>
  </div>

      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">shou quan</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v5.3.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://mist.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Mist</a> v7.7.2
  </div>

        








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/muse.js"></script>


<script src="/js/next-boot.js"></script>




  















  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'eTrO8AWvxgIw1eLbKw8iikkE-gzGzoHsz',
      appKey     : 'EcMtYpxCRefmUxWAVnp1NEn2',
      placeholder: "快来·~ ◑ω◐",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : true,
      lang       : 'zh-cn' || 'zh-cn',
      path       : location.pathname,
      recordIP   : true,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
